package com.system.runtai.utils;


import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import com.alibaba.excel.write.metadata.style.WriteCellStyle;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import com.alibaba.excel.write.style.column.AbstractColumnWidthStyleStrategy;


import java.time.LocalDateTime;

@Data
public class IpaDown {

    //提示信息表id
    @TableId
    //导出时忽略该字段
//    @ExcelIgnore
    @ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER) // 内容居中
    @ExcelProperty("ID")
    @ColumnWidth(10)
    private Long id;

    @ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER) // 内容居中
    @ExcelProperty("姓名")
    @ColumnWidth(20)
    private String name;

    @ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER) // 内容居中
    @ExcelProperty("电话")
    @ColumnWidth(20)
    private String phone;

    @ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER) // 内容居中
    @ExcelProperty("地址")
    @ColumnWidth(30)
    private String address;

    @ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER) // 内容居中
    @ExcelProperty("微信号")
    @ColumnWidth(20)
    private String wechatID;

    @ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER) // 内容居中
    @ExcelProperty("邮箱")
    @ColumnWidth(20)
    private String email;

    @ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER) // 内容居中
    @ExcelProperty("业务介绍")
    @ColumnWidth(40)
    private String title;

    @ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER) // 内容居中
    @ExcelProperty("公司")
    @ColumnWidth(20)
    private String company;

    @ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER) // 内容居中
    @ExcelProperty("通过状态")
    @ColumnWidth(13)
    private String start;

    @ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER) // 内容居中
    @ColumnWidth(20)
    @ExcelProperty("创建时间")
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

}
